FROM java:8-jre

ADD ./target/account-service.jar /app/
CMD ["java", "-Xmx500m","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=/tmp", "-jar", "/app/account-service.jar"]

RUN  echo "Asia/Shanghai" > /etc/timezone
RUN  dpkg-reconfigure -f noninteractive tzdata

EXPOSE 8060